﻿<%@ Page Language="C#" AutoEventWireup="true"  Inherits="DC.BLL.List"
    MasterPageFile="~/Admin/App/AppMaster.Master" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function pageselectCallback(page_id, jq) {
            //alert(page_id); 回调函数，进一步使用请参阅说明文档
        }
        //隔行变色
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg");
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="Main_Content" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="left">
                &nbsp;
            </td>
            <td class="style2">
                是否过期：
                <asp:DropDownList ID="ddlProperty" runat="server" CssClass="select" AutoPostBack="True"
                    OnSelectedIndexChanged="ddlProperty_SelectedIndexChanged" Height="22px" Width="110px">
                    <asp:ListItem Value="">所有类型</asp:ListItem>
                    <asp:ListItem Value="0" Selected="True">未过期</asp:ListItem>
                    <asp:ListItem Value="1">已过期</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="left">
                品牌：<asp:DropDownList ID="CardSellerList" runat="server" CssClass="select" AutoPostBack="True"
                    OnSelectedIndexChanged="Seller_SelectedIndexChanged" Height="22px" Width="149px">
                    <asp:ListItem Value="-1">所有品牌</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td width="150">
                &nbsp;
            </td>
            <td width="60" align="center">
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="50px" align="center">
                        &nbsp;
                    </th>
                    <th width="6%">
                        缩略图
                    </th>
                    <th align="center">
                        名称
                    </th>
                    <th width="13%" align="center">
                        价格
                    </th>
                    <th width="13%" align="center">
                        品牌
                    </th>
                    <th width="13%" align="center">
                        过期时间
                    </th>
                    <th width="16%" align="center">
                        创建时间
                    </th>
                    <th width="8%" align="center">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <input type="checkbox" id="<%#Eval("CardId")%>" />
                </td>
                <td align="center">
                    <a href="<%#Eval("CardUrl")%>" target="_blank">
                        <img src="<%#Eval("ThumbUrl")%>" width="50px" height="50px" />
                    </a>
                </td>
                <td>
                    <%#Eval("CardName")%>
                </td>
                <td align="center">
                    <%#Eval("Price")%>
                </td>
                <td align="center">
                    <%#Eval("SellerName")%>
                </td>
                <td align="center">
                    <%# DateTime.Parse(Eval("ExpiredDate").ToString()).ToShortDateString()%>
                </td>
                <td align="center">
                    <%# DateTime.Parse(Eval("CreateTime").ToString()).ToShortDateString()%>
                </td>
                <td align="center">
                    <a href="javascript:del('<%#Eval("CardId")%>');">删除 </a>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <div id="Pagination" class="right flickr">
        </div>
        <div class="left">
            <%--<span class="btn_all" onclick="checkAll(this);">全选</span>
                <span class="btn_bg">
                  <asp:LinkButton ID="lbtnAudit" runat="server" onclick="lbtnAudit_Click">审 核</asp:LinkButton>
                    &nbsp;<asp:LinkButton ID="lbtnDel" runat="server" 
                    OnClientClick="return confirm( '确定要删除这些记录吗？ ');" onclick="lbtnDel_Click">删 除</asp:LinkButton>
                </span>--%>
        </div>
    </div>
    <script language="javascript">    
    var path ='<%= Request.Url.AbsoluteUri.Split('?')[0] %>';
        function del(id) {
            if (!confirm('是否确定删除？')) return;
            window.location = path + "?op=del&id=" + id;
        }
    </script>
</asp:Content>

